<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Document</title>
    <link rel="stylesheet" href="../css/api.css">
    <link rel="stylesheet" href="../css/news.css">
    <link rel="stylesheet" href="../css/aui_font.css">
    <link rel="stylesheet" href="../css/win.css">
</head>

<body>
    <header>
        <div class="head new-padding-10  flex-c">
            <div class="back new-back" tapmode onclick="_closeToWin()"></div>
            <div class="title"></div>
            <div class="more hide" tapmode onclick="_more()">更多</div>
        </div>
    </header>
</body>
<script src="../script/api.js"></script>
<script src="../script/ffkj.js"></script>
<script>
    var moreType = 0;
    apiready = function() {
        $api.fixStatusBar($api.dom('header'));
        $api.text($api.dom('.title'), api.pageParam['title']);
        if (api.pageParam['moreTitle']) {
            $api.text($api.dom('.more'), api.pageParam['moreTitle']);
            moreType = 1;
            $api.removeCls($api.dom('.more'), 'hide');
        }
        if (api.pageParam['moreType']) {
            if (api.pageParam['moreType'] == 'ques') {
                var html = '<i class="aui-iconfont aui-icon-question"></i>';
            } else {
                var html = '<i class="aui-iconfont aui-icon-more"></i>';
            }
            $api.html($api.dom('.more'), html);
            $api.removeCls($api.dom('.more'), 'hide');
            moreType = 1;
        }
        if (api.pageParam['keyback'] == 1) {
            keyback();
        } else {
            _listener('keyback', function() {
                _closeToWin();
            })
        }

        _listener('newmsg', function(ret) {
            showMsgFrm(ret.value.data)
        })
        _openFrame(api.pageParam['url'], '', '1', api.pageParam);
    }


    // 更多
    function _more() {
        if (!moreType) return;
        api.execScript({
            frameName: api.pageParam['url'],
            script: '_more()'
        })
    }
</script>

</html>